package com.example.personnel_oa.mapper;
//数据访问层
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.comment_oa.pojos.Contract;
import com.example.comment_oa.pojos.SysEmployee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
* @author HUAWEI
* @description 针对表【contract】的数据库操作Mapper
* @createDate 2022-10-20 17:03:17
* @Entity personnel_oa.pojos.Contract
*/
@Mapper//识别他为mybatis的mapper接口
public interface ContractMapper extends BaseMapper<Contract> {
   //利用注解开发就不需要xml映射文件
    public List<Contract> Methods_con();
    //员工入职后添加到合同表中，未签署试用合同
    int addContract(Contract contract);
    //根据id查询合同数据
    Contract conId(int conId);
    //签试用合同
    int shiyong(Contract contract);
    //新增正式合同
    int zhengshi(Contract contract);
    //新增解除合同
    int jiechu(Contract contract);

}



